﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.ServiceModel;
using System.ServiceModel.Web;
using System.IO;

namespace CoderJoe.WoW.Proxies.Armory
{
	[ServiceContract]
	public interface IWoWArmory
	{
		[OperationContract]
		[WebGet(
			BodyStyle= WebMessageBodyStyle.Bare,
			ResponseFormat= WebMessageFormat.Xml,
			UriTemplate="character-sheet.xml?r={realm}&cn={name}")]
		GetCharacterSheetResult.page GetCharacterSheet(string realm, string name);

		[OperationContract]
		[WebGet(
			BodyStyle = WebMessageBodyStyle.Bare,
			ResponseFormat = WebMessageFormat.Xml,
			UriTemplate = "item-info.xml?i={itemId}")]
		GetItemInfoResult.page GetItemInfo(int itemId);

		[OperationContract]
		[WebGet(
			BodyStyle = WebMessageBodyStyle.Bare,
			ResponseFormat = WebMessageFormat.Json,
			UriTemplate = "wow-icons/_images/51x51/{imageName}.jpg")]
		Stream GetItemImageStream(string imageName);

        [OperationContract]
        [WebGet(
            BodyStyle = WebMessageBodyStyle.Bare,
            ResponseFormat = WebMessageFormat.Xml,
            UriTemplate = "item-tooltip.xml?i={itemId}")]
        GetItemDetailResult.page GetItemDetailInfo(int itemId);

	}
}
